#include "mainwindow.h"
#include <QApplication>
#include"database.h"
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    //连接数据库
    //QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));//中文乱
    new database(); // Connect Databse


    MainWindow w;
    w.show();
    return a.exec();
}
